package com.itheima.dao;

import com.itheima.pojo.Intervention;

import java.util.List;
import java.util.Map;

public interface InterventionDao {

    Intervention findById(Integer id);


    void add(Intervention intervention);

    void setInterventionAndSports(Map<String, Integer> map);
    void setInterventionAndFood(Map<String, Integer> map);

    List<Integer> findsportsIdByOrderId(Integer id);

    List<Integer> findfoodIdsByOrderId(Integer id);

    Intervention findByOrderId(Integer id);

    void edit(Intervention intervention);

    void deleteAssocicationSport(int id);

    void deleteAssocicationFood(int id);
}
